#{extends 'main.html' /}
#{set title:'发现用户' /}
#{set 'moreScripts'}
	#{script 'user.js' /}
#{/set}
#{set 'moreStyles'}
     #{stylesheet 'user.css' /}
#{/set}
<script>
var addToFriendURL = #{jsAction @users.addToFriend(':friendId') /}
var removeFriendURL = #{jsAction @users.removeFriend(':friendId') /}
</script>

<div class="content_body_970">
	<div class="recommend_toolbar">
		<a href="@{users.recommend()}">发现用户</a>
		<a href="@{stories.recommend()}">发现故事</a>
	</div>
	#{list users , as: 'u'}
		<div>
			${u.username}
			<button class="addToFriendBtn" onclick="addToFriend(${u.id})">关注</button>
			<button class="removeFriendBtn" onclick="removeFriend(${u.id})">取消关注</button>
		</div>
	#{/list}
</div>